<html>
<head><meta charset="utf-8"><title>ra_lsp_server crash with invalid type: integer `1` · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html">ra_lsp_server crash with invalid type: integer `1`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="183174829"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20crash%20with%20invalid%20type%3A%20integer%20%601%60/near/183174829" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rudi Floren <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html#183174829">(Dec 11 2019 at 16:36)</a>:</h4>
<p>Hey,<br>
I updated my ra today but now it hit me with ra_lsp_server crashes. <br>
I get this in my vscode extension log for <code>Rust Analyzer Language Server</code>:<br>
<code>Error: Error("invalid type: integer </code>1<code>, expected string or map", line: 0, column: 0)
[Error - 17:26:12] Connection to server got closed. Server will not be restarted.</code></p>
<p>I wasn't able to find any related github issues. Anyone encountered this?</p>
<p>Running latest rust and rust nightly as well as a clean compile of whole ra_lsp_server</p>



<a name="183175104"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20crash%20with%20invalid%20type%3A%20integer%20%601%60/near/183175104" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html#183175104">(Dec 11 2019 at 16:39)</a>:</h4>
<p><span class="user-mention" data-user-id="253800">@Rudi Floren</span> yep, a known issue due to dependnecy upgrade, I've reverted the dependency upgrade, it'll land in 10 minutes. For know, consider reverting manually to a version several commits back (git reset --hard HEAD~10) should do the trick</p>



<a name="183175213"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20crash%20with%20invalid%20type%3A%20integer%20%601%60/near/183175213" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rudi Floren <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html#183175213">(Dec 11 2019 at 16:40)</a>:</h4>
<p>Thanks for the quick answer.</p>



<a name="183175353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20crash%20with%20invalid%20type%3A%20integer%20%601%60/near/183175353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html#183175353">(Dec 11 2019 at 16:42)</a>:</h4>
<p>I just happed to step into this myself a moment ago :)</p>



<a name="183214609"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server%20crash%20with%20invalid%20type%3A%20integer%20%601%60/near/183214609" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/ra_lsp_server.20crash.20with.20invalid.20type.3A.20integer.20.601.60.html#183214609">(Dec 11 2019 at 23:46)</a>:</h4>
<p>Yep! My bad. That will teach me to push changes on my way to work. Thanks for the quick fix.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>